package com.qf.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 2019/9/23
 * Administrator
 * ssm0923
 * 面向对象面向君  不负代码不负卿
 */
@Controller
public class MenuController {
   //  id ->11->张三
    @RequestMapping("/item/queryItem.action")
    @RequiresPermissions("item:select")
    @RequiresRoles("商品管理员")
    public String queryitem(){
        System.out.println("queryitem----");
        return "queryItem";
    }
    //id ->21->李四
    @RequestMapping("/user/queryuser.action")
    @RequiresPermissions("user:query")
    @RequiresRoles("用户管理员")
    public String queryuser(){
        System.out.println("queryuser----");
        return "queryuser";
    }

}
